package org.i1510.wuyo.dao;
import org.i1510.common.dao.IBaseJpaDao;
import org.i1510.wuyo.po.KmRegAnswer;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;



@Repository
public interface IKmRegAnswerDao extends IBaseJpaDao<KmRegAnswer, String>{
//	@Modifying 
//	@Query("update KmRegAnswer a set a.docStatus = :docStatus WHERE a.kmRegistId = :kmRegistId") 
//	 public int uipdateByKmRegistId(@Param("docStatus")String docStatus,@Param("kmRegistId")String kmRegistId); 
/********************以下是标准接口*********************************************************/	
	@Query("SELECT a from KmRegAnswer a WHERE a.docId =:docId") 
	 public KmRegAnswer findById(@Param("docId")String docId); 
/********************以上是标准接口*********************************************************/	
}
